﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GuanYijia.DoMain
{
    public class MaterialNeedModel
    {
        //物料表
        [Key]
        public int MaterialNeedId {  get; set; }
        //信息表id
        public int? productid { get; set; }
        [StringLength(100)]
        //条形码
        public string? bar_code { get; set; }
        [StringLength(100)]
        //产品名称
        public string? product_name { get; set; }
        [StringLength(100)]
        // 规格
        public string? standard { get; set; }
        [StringLength(100)]
        // 型号
        public string? model { get; set; }
        [StringLength(50)]
        //单位
        public string? unit { get; set; }
        //多属性
        [StringLength(100)]
        public string? sku { get; set; }
        /// <summary>
        /// 采购价格
        /// </summary>
        [Column(TypeName = "decimal(24,2)")]
        public decimal? purchase_decimal { get; set; }
        //数量
        public int? MaterialNeedNum { get; set; }
        //费用
        [Column(TypeName = "decimal(24,2)")]
        public decimal? MaterialNeedPrice {  get; set; }
        //备注
        [StringLength(1024)]
        public string? remark { get; set; }

    }
}
